<template>
	<view class="content">
		<view class="list" v-for="(el,ind) in listlm" @click="nato(ind,el.path)">
			{{el.name}}
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				listlm:[],
			}
		},
		onLoad(options) {
			var that=this;
			switch (Number(options.ind)){//Switch case 使用严格比较（===）
				case 0:
				that.listlm=[{name:'门票列表',path:'/pages/liebiao/allload?name=门票列表&ind=0'},{name:'美食列表',path:'/pages/liebiao/allload?name=美食列表&ind=1'},{name:'住宿列表',path:'/pages/liebiao/allload?name=住宿列表&ind=2'}]
					break;
				case 1:
				that.listlm=[{name:'普通海报',path:'/pages/schb/pthb?id=1&name=普通海报'},{name:'动态海报',path:'/pages/schb/pthb?id=2&name=动态海报'}]
					break;
				case 2:
				that.listlm=[{name:'上传文件',path:'/pages/upfail/upfail?id=1&name=上传文件'},{name:'批量上传文件',path:'/pages/upfail/upfail?id=2&name=批量上传文件'}]
					break;
				case 3:
				that.listlm=[{name:'时间选择',path:'/pages/chosetime/time?id=1&name=时间选择'}]
					break;
				case 4:
				that.listlm=[{name:'个人中心',path:'/pages/gerenzhongxin/center?id=1&name=个人中心'}]
					break;
				case 5:
				that.listlm=[{name:'上下滑动',path:'/pages/scroll/index?id=1&name=上下滑动'}]
					break;
				case 6:
				that.listlm=[{name:'顶部导航',path:'/pages/tab/tab?id=1&name=顶部导航'},{name:'底部导航',path:'/pages/tab/tab?id=2&name=顶部导航'}]
					break;
				case 7:
				that.listlm=[{name:'评论带回复',path:'/pages/pinglun/pinglun?id=1&name=评论带回复'}]
					break;
				default:
					break;
			}
		},
		methods: {
			nato(ind,path){
				uni.navigateTo({
					url:path
				})
			}
		}
	}
</script>

<style>
	.list{
		width: 690rpx;
		height: 80rpx;
		line-height: 80rpx;
		border-radius: 10rpx;
		border: 1rpx solid #ccc;
		text-align: center;
		margin-bottom: 25rpx;
	}
	.content {
		display: flex;
		flex-direction: column;
		align-items: center;
		padding: 20rpx 0;
	}

</style>
